package com.sc.VenusQueryBeta.model.hotel.tabs;

import com.hengjun.kingstar.sdk.base.BaseModel;
import com.hengjun.kingstar.sdk.helper.RetrofitCreateHelper;
import com.hengjun.kingstar.sdk.helper.RxHelper;
import com.sc.VenusQueryBeta.api.Host;
import com.sc.VenusQueryBeta.api.home.HomeApi;
import com.sc.VenusQueryBeta.contract.hotel.tabs.HotelDiningContract;
import com.sc.VenusQueryBeta.model.bean.home.HotelRestaurantBean;

import io.reactivex.Observable;

/**
 * 酒店餐厅模型
 */

public class HotelDiningModel extends BaseModel implements HotelDiningContract.IHotelDiningModel{
    @Override
    public Observable<Boolean> recordItemIsRead(String key) {
        return null;
    }
    public  static HotelDiningModel newInstance(){
        return new  HotelDiningModel();
    }

    @Override
    public Observable<HotelRestaurantBean> getHotelRestaurant(int vipClubId) {
        return RetrofitCreateHelper.createApi(HomeApi.class, Host.Host).getHotelRestaurant(vipClubId).compose(RxHelper.<HotelRestaurantBean>rxSchedulerHelper());
    }
}
